// 主入口文件，导出所有组件和功能
import MarkdownEditor from './components/MarkdownEditor.vue'

// 导入所有CSS文件，确保它们被打包到最终的CSS文件中
import 'github-markdown-css/github-markdown.css'
import 'katex/dist/katex.css'
import './plugins/markdownItDataset.css'
import './plugins/markdownItEcharts.css'
import './plugins/markdownItMermaid.css'
import './plugins/markdownItEditable.css'
import './plugins/markdownItContainer.css'

// 导出工具函数
import { createMarkdownItInstance } from './utils/markdownConfig.js'

// 导出插件
import markdownItDataset from './plugins/markdownItDataset.js'
import markdownItEcharts from './plugins/markdownItEcharts.js'
import markdownItMermaid from './plugins/markdownItMermaid.js'
import markdownItEditable from './plugins/markdownItEditable.js'
import markdownItContainer from './plugins/markdownItContainer.js'

// 默认导出主组件
export default MarkdownEditor

// 命名导出所有组件和功能
export {
  MarkdownEditor,
  createMarkdownItInstance,
  markdownItDataset,
  markdownItEcharts,
  markdownItMermaid,
  markdownItEditable,
  markdownItContainer
}